package junit;

import org.activiti.engine.ProcessEngineConfiguration;
import org.junit.Test;

public class TwoCreateTableMethod {
	
//	@Test
//	public void creatTable(){
//		ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
//		processEngineConfiguration.setJdbcDriver("com.mysql.jdbc.Driver");
//		processEngineConfiguration.setJdbcUrl("jdbc:mysql://172.31.2.14:3306/activiti?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true");
//		processEngineConfiguration.setDatabaseSchemaUpdate(processEngineConfiguration.DB_SCHEMA_UPDATE_CREATE_DROP);
//		processEngineConfiguration.setJdbcUsername("root");
//		processEngineConfiguration.setJdbcPassword("yunjisuan");
//		
//		processEngineConfiguration.buildProcessEngine();
//	}
	
	@Test
	public void creatTable2(){
		ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml").buildProcessEngine();
	}
}
